<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">

<title> 提交记录 3745 - Judge Duck Online </title>

<link rel="icon" type="image/png" href="/images/judgeduck-logo-small.png" />

<script src="/libs/js/jquery-3.2.1.min.js"></script>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="/libs/css/bootstrap.min.css" />

<!-- Latest compiled and minified JavaScript -->
<script src="/libs/js/bootstrap.min.js"></script>

<link rel="stylesheet" type="text/css" href="/css/main.css" />
<link rel="stylesheet" href="/css/non-responsive.css" type="text/css" />

<script src="/js/md5.js"></script>
<script src="/js/judgeduck.js"></script>

<script type="text/x-mathjax-config">
	MathJax.Hub.Config({
		showProcessingMessages: false,
		tex2jax: {
			inlineMath: [["$", "$"], ["\\\\(", "\\\\)"]],
			processEscapes:true
		},
		menuSettings: {
			zoom: "Hover"
		}
	});
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.1/MathJax.js?config=TeX-AMS_HTML"></script>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>

</head>

<body onload="">

<!-- Fixed navbar -->
<nav class="navbar navbar-default" role="navigation" style="background-color: #eeeeee">
	<div class="container">
		<div class="navbar-header">
			<div class="navbar-brand">
				<a href="/">
					<img src="/images/judgeduck-logo.png" width="40px" height="40px" style="margin:-10px" />
				</a>
			</div>
			<font class="navbar-brand">
				Judge Duck Online
			</font>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="nav-item">
					<a class="nav-link" href="/index/index.html"> 首页 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/problems/index.html"> 题目列表 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/submissions/index.html"> 提交记录 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/blogs/index.html"> 博客 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/faq/index.html"> FAQ </a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="nav-item">
					<a class="nav-link" href="/user/login/index.html"> 登录 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/user/register/index.html"> 注册 </a>
				</li>
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</nav>




<div id="main_div" class="container" style="padding-left: 25px; padding-right: 25px">
	<h2> 提交记录 3745 </h2>
	<hr />
	
	<div class="row">
		<div class="col-xs-12">
			<table class="table table-bordered">
				<tr>
					<th class="col-xs-2"> 用户 </th>
					<th class="col-xs-3"> 题目 </th>
					<th class="col-xs-2"> 状态 </th>
					<th class="col-xs-1"> 得分 </th>
					<th class="col-xs-1"> 用时 </th>
					<th class="col-xs-1"> 内存 </th>
					<th class="col-xs-1"> 语言 </th>
					<th class="col-xs-1"> 代码长度 </th>
				</tr>
				<tr>
					<td style='font-size:13px'> <a href='/user/profile/jhdjames37/index.html'> jhdjames37 </a> </td>
<td> <a href='/problem/noi18a/index.html'> noi18a. 【NOI2018】归程 </a> </td>
<td> Accepted </td>
<td> 100 </td>
<td style='font-size:13px'> 2.621 s </td>
<td style='font-size:13px'> 234 MB + 708 KB </td>
<td style='font-size:13px'> C++ </td>
<td style='font-size:13px'> 6.76 KB </td>
				</tr>
			</table>
			<table class="table table-bordered">
				<tr>
					<th class="col-xs-6"> 提交时间 </th>
					<th class="col-xs-6"> 评测时间 </th>
				</tr>
				<tr>
					<td style='font-size:13px'> 2018-07-18 17:11:36 </td>
<td style='font-size:13px'> 2019-01-18 23:34:53 </td>
				</tr>
			</table>
			<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/styles/tomorrow.min.css">
			<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/highlight.min.js"></script>
			<script>hljs.initHighlightingOnLoad();</script>
			<div class="row">
				<label for="code"> 代码 </label>
				<pre style="background-color:white"><code class="cpp">#include &lt;cstdio&gt;
#include &lt;cstring&gt;
#include &lt;algorithm&gt;
#include &lt;queue&gt;
#include &lt;utility&gt;
#include &lt;functional&gt;
#include &lt;cctype&gt;
const int MAXN = 2e5 + 10;
const int MAXM = 4e5 + 10;

int n, m;
struct Data {
  int u, v, l, a;
}data[MAXM];
struct Edge {
  int v, w, next;
}edge[MAXM &lt;&lt; 1];
int head[MAXN], tail;
int q, k, s;
void insert(int u, int v, int w) {
  edge[++tail] = (Edge) {v, w, head[u]}; head[u] = tail;
}
namespace io {
  const int SIZE = 1e6;
  char buff[SIZE];
  char *l = buff, *r = buff;
  void init() {
    l = buff;
    r = l + fread(buff, 1, SIZE, stdin);
  }
  char gc() {
    if (l == r) init();
      return *(l++);
      //return getchar();
  }
  void read(int &amp;x) {
    x = 0;
    char ch = gc();
    while(!isdigit(ch)) ch = gc();
    while(isdigit(ch)) x = x * 10 + ch - &#x27;0&#x27;, ch = gc();
  }
}using io::read;
namespace solver1 {
  long long dis[MAXN];
  void dijkstra() {
    memset(dis, 63, sizeof dis);
    
    typedef std::pair&lt;long long, int&gt; Pii;
    
    std::priority_queue &lt;Pii, std::vector&lt;Pii&gt;, std::greater&lt;Pii&gt; &gt; pq;

    dis[1] = 0;
    pq.push(std::make_pair(0, 1));

    while(!pq.empty()) {
      Pii tmp = pq.top(); pq.pop();

      int u = tmp.second;
      long long d = tmp.first;

      if (d != dis[u]) continue;

      for (int i = head[u]; i; i = edge[i].next) {
        int v = edge[i].v;

        if (d + edge[i].w &lt; dis[v]) {
          dis[v] = d + edge[i].w;
          pq.push(std::make_pair(dis[v], v));
        }
      }
      
    }
  }

  namespace seg_tree {
    const int SIZE = 1e7;
    struct Node {
      int ls, rs;
      int fa, min, sz, t;
      int to;
    }tree[SIZE];
    int root[MAXM], cnt;
    int newnode() {
      int u = ++cnt;
      memset(tree + u, 0, sizeof tree[u]);
      return u;
    }
    void build(int &amp;node, int l, int r) {
      node = newnode();
      tree[node].ls = tree[node].rs = 0;
      tree[node].t = 0;
      
      if (l == r) {
        tree[node].fa = l;
        tree[node].min = dis[l];
        tree[node].sz = 1;
        return;
      }
      int mid = (l + r) &gt;&gt; 1;

      build(tree[node].ls, l, mid);
      build(tree[node].rs, mid + 1, r);
    }

    void init() {
      memset(root, 0, sizeof root);
      cnt = 0;
      build(root[0], 1, n);
    }

    int p, ve;
    int val, minv, szv;
    void _query(int node, int l, int r) {
      while(1) {
        if (l == r) {
          val = tree[node].fa;
          minv = tree[node].min;
          szv = tree[node].sz;
          return;
        }
        int mid = (l + r) &gt;&gt; 1;
        if (p &lt;= mid) {
          node = tree[node].ls, r = mid;
        } else {
          node = tree[node].rs, l = mid + 1;          
        }
        //_query(tree[node].ls, l, mid);
        //else _query(tree[node].rs, mid + 1, r);
      }
    }

    void query(int pos, int ver, int &amp;res, int &amp;min, int &amp;sz) {
      p = pos;
      _query(root[ver], 1, n);
      res = val, min = minv, sz = szv;
      /*
      if (sz &gt; n) {
        fprintf(stderr, &quot;%d %d %d\n&quot;, pos, ver, sz);
        throw;
      }
      */
    }

    void _modify(int &amp;cur, int pre, int l, int r) {
      if (tree[cur].t != ve) {
        cur = newnode();
        tree[cur] = tree[pre];
        tree[cur].t = ve;
      }

      if (l == r) {
        tree[cur].fa = val;
        tree[cur].min = minv;
        tree[cur].sz = szv;
        return;
      }

      int mid = (l + r) &gt;&gt; 1;

      if (p &lt;= mid) _modify(tree[cur].ls, tree[pre].ls, l, mid);
      else _modify(tree[cur].rs, tree[pre].rs, mid + 1, r);
    }

    void modify(int pos, int ver, int res, int min, int sz) {
      p = pos;
      val = res;
      minv = min;
      szv = sz;
      ve = ver;
      
      _modify(root[ver], root[ver - 1], 1, n);
    }
    void setroot(int x) {
      root[x] = ++cnt;
      tree[root[x]] = tree[root[x - 1]];
      tree[root[x]].t = x;
    }
    void _print(int node, int l, int r) {
      if (l == r) {
        printf(&quot;fa[%d] = %d, &quot;, l, tree[node].fa);
        return;
      }
      int mid = (l + r) &gt;&gt; 1;
      _print(tree[node].ls, l, mid);
      _print(tree[node].rs, mid + 1, r);
    }
    void print() {
      for (int i = 0; i &lt;= m; i++) {
        _print(root[i], 1, n);
        printf(&quot;\n&quot;);
      }
    }
  }

  int fa[MAXN], min[MAXN], sz[MAXN];
  
  void find(int x, int ver, int &amp;fa, int &amp;min, int &amp;sz) {
    int f, m, s;
    seg_tree::query(x, ver, f, m, s);
    if (f == x) {
      fa = f, min = m, sz = s;
      return;
    }
    find(f, ver, fa, min, sz);
  }

  int find(int x) {
    return x == fa[x] ? x : find(fa[x]);
  }
  bool cmp(const Data &amp;a, const Data &amp;b) {
    return a.a &gt; b.a;
  }
  int val[MAXM];
  void main() {
    
    dijkstra();

    seg_tree::init();

    std::sort(data + 1, data + m + 1, cmp);

    for (int i = 1; i &lt;= n; i++) {
      fa[i] = i; min[i] = dis[i];
      sz[i] = 1;
    }
    
    for (int i = 1; i &lt;= m; i++) {
      int x, minx, szx;
      int y, miny, szy;
      val[i] = data[i].a;
      //find(data[i].u, i - 1, x, minx, szx);
      //find(data[i].v, i - 1, y, miny, szy);
      x = find(data[i].u);
      y = find(data[i].v);
      minx = min[x];
      miny = min[y];
      szx = sz[x];
      szy = sz[y];
      

      if (x == y) {
        seg_tree::setroot(i);
        continue;
      }
      
      if (szx &lt; szy) {
        std::swap(x, y);
        std::swap(minx, miny);
        std::swap(szx, szy);
      }

      seg_tree::modify(y, i, x, miny, szy);
      //fprintf(stderr, &quot;%d %d %d %d %d\n&quot;, i, szx, szy, data[i].u, data[i].v);
      seg_tree::modify(x, i, x, std::min(minx, miny), szx + szy);

      min[x] = std::min(minx, miny);
      sz[x] += sz[y];
      fa[y] = fa[x];
      
    }
    
    //seg_tree::print();
    int ans = 0;

    for (int i = 1; i &lt;= q; i++) {
      int v, p;
      //scanf(&quot;%d%d&quot;, &amp;v, &amp;p);
      read(v); read(p);
      
      //if (i == 12) fprintf(stderr, &quot;%d %d\n&quot;, p, k);
      v = (v + (long long) k * ans - 1) % n + 1;
      p = (p + (long long) k * ans) % (s + 1);

      int pos = std::lower_bound(val + 1, val + m + 1, p, std::greater&lt;int&gt;()) - val - 1;
      //if (i == 2) fprintf(stderr, &quot;%d %d %d %d %d %d\n&quot;, pos, val[pos - 2], val[pos - 1], val[pos], val[pos + 1], val[pos + 2]);
      
      int x, minx, szx;
      find(v, pos, x, minx, szx);

      ans = minx;
      printf(&quot;%d\n&quot;, ans);
    }
  }
}

int main() {
#ifndef LOCAL
  //freopen(&quot;return.in&quot;, &quot;r&quot;, stdin);
  //freopen(&quot;return.out&quot;, &quot;w&quot;, stdout);
#endif
  int t;
  //scanf(&quot;%d&quot;, &amp;t);
  read(t);
  while(t--) {
    memset(head, 0, sizeof head);
    tail = 0;

    //scanf(&quot;%d%d&quot;, &amp;n, &amp;m);
    read(n); read(m);
    for (int i = 1; i &lt;= m; i++) {
      int u, v, l, a;
      //scanf(&quot;%d%d%d%d&quot;, &amp;u, &amp;v, &amp;l, &amp;a);
      read(u); read(v); read(l); read(a);
      data[i] = (Data) {u, v, l, a};
      insert(u, v, l);
      insert(v, u, l);
    }

    //scanf(&quot;%d%d%d&quot;, &amp;q, &amp;k, &amp;s);
    read(q); read(k); read(s);

    solver1::main();
  }
}
</code></pre>
				<br />
				
				<label for="result"> 评测结果 </label><div class="row"><div class="col-xs-12"><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Compilation</b></td><td class="col-xs-2" style="vertical-align:middle">N/A</td><td class="col-xs-2" style="vertical-align:middle">N/A</td><td class="col-xs-2" style="vertical-align:middle">Compile OK</td><td class="col-xs-2" style="vertical-align:middle">Score: N/A</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_1" aria-expanded="false" aria-controls="detail_1">显示更多</a></td></tr></table></div><div class="collapse" id="detail_1"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>Compiling...
Compile success!
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #1</b></td><td class="col-xs-2" style="vertical-align:middle">662.93 us</td><td class="col-xs-2" style="vertical-align:middle">3 MB + 896 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_2" aria-expanded="false" aria-controls="detail_2">显示更多</a></td></tr></table></div><div class="collapse" id="detail_2"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 0.662929
mem_kb = 3968
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #2</b></td><td class="col-xs-2" style="vertical-align:middle">680.72 us</td><td class="col-xs-2" style="vertical-align:middle">3 MB + 908 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_3" aria-expanded="false" aria-controls="detail_3">显示更多</a></td></tr></table></div><div class="collapse" id="detail_3"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 0.680721
mem_kb = 3980
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #3</b></td><td class="col-xs-2" style="vertical-align:middle">819.93 us</td><td class="col-xs-2" style="vertical-align:middle">3 MB + 948 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_4" aria-expanded="false" aria-controls="detail_4">显示更多</a></td></tr></table></div><div class="collapse" id="detail_4"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 0.819927
mem_kb = 4020
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #4</b></td><td class="col-xs-2" style="vertical-align:middle">997.87 us</td><td class="col-xs-2" style="vertical-align:middle">3 MB + 984 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_5" aria-expanded="false" aria-controls="detail_5">显示更多</a></td></tr></table></div><div class="collapse" id="detail_5"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 0.997865
mem_kb = 4056
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #5</b></td><td class="col-xs-2" style="vertical-align:middle">5.9 ms</td><td class="col-xs-2" style="vertical-align:middle">5 MB + 264 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_6" aria-expanded="false" aria-controls="detail_6">显示更多</a></td></tr></table></div><div class="collapse" id="detail_6"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 5.899716
mem_kb = 5384
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #6</b></td><td class="col-xs-2" style="vertical-align:middle">1.204 s</td><td class="col-xs-2" style="vertical-align:middle">230 MB + 440 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_7" aria-expanded="false" aria-controls="detail_7">显示更多</a></td></tr></table></div><div class="collapse" id="detail_7"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 1203.895131
mem_kb = 235960
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #7</b></td><td class="col-xs-2" style="vertical-align:middle">5.027 ms</td><td class="col-xs-2" style="vertical-align:middle">4 MB + 944 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_8" aria-expanded="false" aria-controls="detail_8">显示更多</a></td></tr></table></div><div class="collapse" id="detail_8"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 5.027151
mem_kb = 5040
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #8</b></td><td class="col-xs-2" style="vertical-align:middle">4.939 ms</td><td class="col-xs-2" style="vertical-align:middle">4 MB + 948 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_9" aria-expanded="false" aria-controls="detail_9">显示更多</a></td></tr></table></div><div class="collapse" id="detail_9"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 4.938542
mem_kb = 5044
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #9</b></td><td class="col-xs-2" style="vertical-align:middle">4.939 ms</td><td class="col-xs-2" style="vertical-align:middle">4 MB + 944 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_10" aria-expanded="false" aria-controls="detail_10">显示更多</a></td></tr></table></div><div class="collapse" id="detail_10"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 4.938640
mem_kb = 5040
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #10</b></td><td class="col-xs-2" style="vertical-align:middle">1.323 s</td><td class="col-xs-2" style="vertical-align:middle">217 MB + 924 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_11" aria-expanded="false" aria-controls="detail_11">显示更多</a></td></tr></table></div><div class="collapse" id="detail_11"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 1322.669201
mem_kb = 223132
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #11</b></td><td class="col-xs-2" style="vertical-align:middle">1.319 s</td><td class="col-xs-2" style="vertical-align:middle">217 MB + 996 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_12" aria-expanded="false" aria-controls="detail_12">显示更多</a></td></tr></table></div><div class="collapse" id="detail_12"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 1319.030594
mem_kb = 223204
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #12</b></td><td class="col-xs-2" style="vertical-align:middle">1.422 s</td><td class="col-xs-2" style="vertical-align:middle">228 MB + 784 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_13" aria-expanded="false" aria-controls="detail_13">显示更多</a></td></tr></table></div><div class="collapse" id="detail_13"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 1422.036327
mem_kb = 234256
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #13</b></td><td class="col-xs-2" style="vertical-align:middle">1.423 s</td><td class="col-xs-2" style="vertical-align:middle">230 MB + 996 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_14" aria-expanded="false" aria-controls="detail_14">显示更多</a></td></tr></table></div><div class="collapse" id="detail_14"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 1422.956123
mem_kb = 236516
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #14</b></td><td class="col-xs-2" style="vertical-align:middle">1.422 s</td><td class="col-xs-2" style="vertical-align:middle">230 MB + 928 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_15" aria-expanded="false" aria-controls="detail_15">显示更多</a></td></tr></table></div><div class="collapse" id="detail_15"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 1421.573645
mem_kb = 236448
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #15</b></td><td class="col-xs-2" style="vertical-align:middle">7.348 ms</td><td class="col-xs-2" style="vertical-align:middle">5 MB + 376 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_16" aria-expanded="false" aria-controls="detail_16">显示更多</a></td></tr></table></div><div class="collapse" id="detail_16"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 7.347614
mem_kb = 5496
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #16</b></td><td class="col-xs-2" style="vertical-align:middle">7.328 ms</td><td class="col-xs-2" style="vertical-align:middle">5 MB + 372 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a href='/user/profile/jhdjames37/index.html'> jhdjames37 </a>
<a href="http://www.iis7.com" class="4ab6a92f2d2d4abcb227a41360a8d1c1" target="_blank" style="display:inline-block;background-color:;color:#fff;padding:2px 5px;font-family:arial;font-size:12px;font-weight:bold;">iis7站长之家</a></td></tr></table></div><div class="collapse" id="detail_17"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 7.327909
mem_kb = 5492
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #17</b></td><td class="col-xs-2" style="vertical-align:middle">1.423 s</td><td class="col-xs-2" style="vertical-align:middle">231 MB + 168 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_18" aria-expanded="false" aria-controls="detail_18">显示更多</a></td></tr></table></div><div class="collapse" id="detail_18"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 1423.193630
mem_kb = 236712
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #18</b></td><td class="col-xs-2" style="vertical-align:middle">1.426 s</td><td class="col-xs-2" style="vertical-align:middle">231 MB + 40 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_19" aria-expanded="false" aria-controls="detail_19">显示更多</a></td></tr></table></div><div class="collapse" id="detail_19"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 1425.889616
mem_kb = 236584
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #19</b></td><td class="col-xs-2" style="vertical-align:middle">2.621 s</td><td class="col-xs-2" style="vertical-align:middle">232 MB + 204 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_20" aria-expanded="false" aria-controls="detail_20">显示更多</a></td></tr></table></div><div class="collapse" id="detail_20"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 2620.869816
mem_kb = 237772
Correct Answer
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #20</b></td><td class="col-xs-2" style="vertical-align:middle">2.606 s</td><td class="col-xs-2" style="vertical-align:middle">234 MB + 708 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 5</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_21" aria-expanded="false" aria-controls="detail_21">显示更多</a></td></tr></table></div><div class="collapse" id="detail_21"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 2605.677415
mem_kb = 240324
Correct Answer
</textarea></div></div></div></div>
			</div>
		</div>
	</div>

	<hr />
	
	<div class="row">
		<p style="text-align: center; color: #888">
			Judge Duck Online | 评测鸭在线 <br />
			Server Time: 2019-08-02 17:19:01 | Loaded in 5 ms | <a href="/status/index.html"> Server Status </a> <br />
			个人娱乐项目，仅供学习交流使用
		</p>
	</div>
</div>

</body>

</html>
